package com.dongdongshop.em;

public enum ResultEnum {

    SUCCESS(10000,"操作成功"),
    ERROR(99999,"操作失败"),
    ACCOUNT_ERROR(10001,"用户没有登录"),
    LOGIN_IS_NULL_ERROR(10002,"账号不存在或密码错误"),
    TOKEN_IS_NULL_ERROR(10003,"token不存在"),
    ACCOUNT_STATUS_EXCEPTION(10004,"账号状态异常，请联系客服"),
    REGISTER_USER_IS_EXIST(10005,"用户名已被注册过"),
    LOGIN_SUCCEED(10006,"登录成功"),
    REGISTER_SUCCEED(10007,"注册成功"),
    REGISTER_ERROR(10008,"注册失败"),
    EXAMINE_ERROR(10009,"审核失败"),
    Examine_SUCCESS(10010,"审核成功"),
    PHONE_ERROR(10011,"手机号格式不正确"),
    CAPTCHA_ERROR(10012,"验证码不正确"),
    NOTCAPTCHA_ERROR(10013,"验证码不存在或已过期,请重新发送验证码");



    private Integer num;  //状态码
    private String name;   //提示信息

    ResultEnum(Integer num, String name) {
        this.num = num;
        this.name = name;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    ResultEnum() {
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getNum() {
        return num;
    }

    public String getName() {
        return name;
    }
}